package rabbitmq.top;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2019/8/21 0021.
 */
@Component
@Slf4j
@RabbitListener(queues = "topict01")
public class Customer001 {

    @RabbitHandler
    public void getMsg(String msg){
        System.out.println( "topict01，消费消息："+msg);
    }

}
